<?php include "../public/header.php";?>
<?php include "../public/header_show.php";?>
<body id="xiangqingPage">
<div id="xiangqingBox">
    <div class="page-title">
        <div class="page-title-con">
            <span class="pageshowtitle">详情</span>
            <div class="page-title-opt-list">
                <?php include "../public_flow/flow_show_optbut.php";?>
                <button class="layui-btn layui-btn-sm btn-light marginr5 opt">
                    操作<i class="layui-icon layui-icon-down layui-font-12"></i>
                </button>
                <span id="page-close" class="page-close" onclick="layer_close()">×</span>
            </div>
        </div>
    </div>
    <div class="main-container">

        <div><?php include "../public_flow/flow_show_info.php";?></div>

        <div class="table-box tablenes">
            <div class="title">基本信息</div>
            <table class="layui-table">
                <tbody>
                <tr><td class="tt">项目名称</td><td class="tv" id="name" colspan="3"></td></tr>
                <tr><td class="tt">项目状态</td><td class="tv" id="state_name" colspan="3"></td></tr>
                <tr><td class="tt">项目编号</td><td class="tv" id="number"></td><td class="tt">项目类型</td><td class="tv" id="bidtype_name"></td></tr>
                <tr><td class="tt">项目所在地</td><td class="tv" id="areas"></td><td class="tt">项目地址</td><td class="tv" id="addr"></td></tr>
                <tr><td class="tt">招标方</td><td class="tv" id="zhaoname"></td><td class="tt">招标方联系方式</td><td class="tv" id="zhaotel"></td></tr>
                <tr><td class="tt">预计合同金额(万元)</td><td class="tv" id="yufee"></td><td class="tt">招标方式</td><td class="tv" id="zhaotype_name"></td></tr>
                <tr><td class="tt">项目所属单位</td><td class="tv" id="chanid_name"></td><td class="tt">项目属性</td><td class="tv" id="business_name"></td></tr>
                <tr><td class="tt">经营备案人</td><td class="tv" id="jingbeier"></td><td class="tt">信息来源</td><td class="tv" id="xinlai"></td></tr>
                <tr><td class="tt">报名截止时间</td><td class="tv" id="enddt_bao"></td><td class="tt">投标截止时间</td><td class="tv" id="enddt_tou"></td></tr>
                <tr><td class="tt">投标负责人</td><td class="tv" id="touer_name"></td><td class="tt">标书制作人</td><td class="tv" id="bianer_name"></td></tr>
                <tr><td class="tt">投标单位</td><td class="tv" id="touunit_name"></td><td class="tt">参投说明</td><td class="tv" id="toushuo"></td></tr>
                <tr class="business_lian layui-hide"><td class="tt">联营单位</td><td class="tv" id="lianunit"></td><td class="tt">是否收费</td><td class="tv" id="isfei"></td></tr>
                <tr class="business_lian layui-hide"><td class="tt">费用收取说明</td><td class="tv" id="feishuo" colspan="3"></td></tr>
                <tr><td class="tt">项目概况</td><td class="tv" id="gai" colspan="3"></td></tr>
                <tr><td class="tt">备注</td><td class="tv" id="explain" colspan="3"></td></tr>
                </tbody>
            </table>
        </div>

        <div class="table-box tablenes">
            <div class="title">投标信息</div>
            <table class="layui-table">
                <tbody>
                <tr><td class="tt">报名时间</td><td class="tv" id="bao_dt"></td><td class="tt">报名费用(元)</td><td class="tv" id="bao_fee"></td></tr>
                <tr><td class="tt">投标时间</td><td class="tv" id="tou_dt"></td><td class="tt">投标金额(元)</td><td class="tv" id="tou_fee"></td></tr>
                <tr><td class="tt">开标时间</td><td class="tv" id="kaidt"></td><td class="tt">开标方式</td><td class="tv" id="tou_kaitype"></td></tr>
                <tr><td class="tt">开标地点</td><td class="tv" id="tou_kaiaddr"></td><td class="tt">开标人</td><td class="tv" id="tou_kaier_name"></td></tr>
                <tr><td class="tt">投标说明</td><td class="tv" id="tou_explain" colspan="3"></td></tr>
                </tbody>
            </table>
        </div>

        <div class="table-box tablenes layui-hide state_kai">
            <div class="title">开标信息</div>
            <table class="layui-table">
                <tbody>
                <tr><td class="tt">开标结果</td><td class="tv" id="state_jie" colspan="3"></td></tr>
                <tr class="state_win layui-hide"><td class="tt">中标日期</td><td class="tv" id="kai_windt" colspan="3"></td></tr>
                <tr class="state_win layui-hide"><td class="tt">中标金额(元)</td><td class="tv" id="kai_fee"></td><td class="tt">中标通知书编号</td><td class="tv" id="kai_num"></td></tr>
                <tr><td class="tt">开标说明</td><td class="tv" id="kai_explain" colspan="3"></td></tr>
                </tbody>
            </table>
        </div>



        <div><?php include "../public/upinfo_show.php";?></div>

        <div><?php include "../public_flow/flow_show_flowrelas.php";?></div>


        <div><?php include '../public_flow/flow_show_shenlog.php'?></div>
        <div><?php include '../public_flow/flow_show_talk.php'?></div>
        <div><?php include '../public/opt_browse.php'?></div>
    </div>
</div>
<script>
    var param_id = getQueryVariable('id') || 0;

    layui.use(['form', 'layer', "laytp",'element','dropdown','laypage','table','soulTable'], function() {
        var laypage = layui.laypage, table = layui.table, dropdown = layui.dropdown, form = layui.form, soulTable = layui.soulTable,element = layui.element;

        facade.ajax({url: ask_bid_show, data:{id: param_id}}).done(function(res){
            if (res.code === 2000) {
                var data = res.data.data;


                $("#name").text(data.name);
                $("#number").text(data.number);
                $("#bidtype_name").text(data.bidtype_name);
                $("#areas").text(data.areas);
                $("#addr").text(data.addr);
                $("#zhaoname").text(data.zhaoname);
                $("#zhaotel").text(data.zhaotel);
                $("#yufee").text(data.yufee);
                $("#zhaotype_name").text(data.zhaotype_name);
                $("#chanid_name").text(data.chanid_name);
                $("#business_name").text(data.business_name);
                $("#jingbeier").text(data.jingbeier);
                $("#xinlai").text(data.xinlai);
                $("#enddt_bao").text(data.enddt_bao);
                $("#enddt_tou").text(data.enddt_tou);
                $("#kaidt").text(data.kaidt);
                $("#touer_name").text(data.touer_name);
                $("#touunit_name").text(data.touunit_name);
                $("#toushuo").text(data.toushuo);
                $("#lianunit").text(data.lianunit);
                $("#isfei").text(data.isfei);
                $("#feishuo").text(data.feishuo);
                $("#state_name").html(data.state_name);
                $("#gai").text(data.gai);
                $("#explain").text(data.explain);
                $("#bianer_name").text(data.bianer_name);


                $("#bao_dt").text(data.bao_dt);
                $("#bao_fee").text(data.bao_fee);
                $("#tou_dt").text(data.tou_dt);
                $("#tou_fee").text(data.tou_fee);
                $("#tou_kaitype").text(data.tou_kaitype);
                $("#tou_kaiaddr").text(data.tou_kaiaddr);
                $("#tou_kaier_name").text(data.tou_kaier_name);
                $("#tou_explain").text(data.tou_explain);




                $("#kai_explain").text(data.kai_explain);

                if(data.business == 2){
                    $(".business_lian").removeClass('layui-hide');
                }


                if(data.state == 3 || data.state == 6){
                    $("#state_jie").text(data.state_jie);
                    $(".state_kai").removeClass('layui-hide');

                    if(data.state == 3){
                        $("#kai_windt").text(data.kai_windt);
                        $("#kai_fee").text(data.kai_fee);
                        $("#kai_num").text(data.kai_num);
                        $(".state_win").removeClass('layui-hide');
                    }
                }





                public_flow_show_display(res.data.billinfo);
                public_upload_show_file('upload_files', res.data.files);
                render_from();
            }
        });

        public_get_readsandlog('bid', param_id);
    });



</script>
</body>
</html>




